class MoneyUtil{
  RegExp reg = new RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))');
  String Function(Match match) mathFunc = (Match match) => '${match[1]},';

  String moneyFormat(String money){
    return money.replaceAllMapped(reg, mathFunc);
  }
}